package com.corning.product.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.corning.common.utils.PageUtils;
import com.corning.common.utils.Query;

import com.corning.product.dao.HosCategoryDao;
import com.corning.product.entity.HosCategoryEntity;
import com.corning.product.service.HosCategoryService;


@Service("hosCategoryService")
public class HosCategoryServiceImpl extends ServiceImpl<HosCategoryDao, HosCategoryEntity> implements HosCategoryService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<HosCategoryEntity> page = this.page(
                new Query<HosCategoryEntity>().getPage(params),
                new QueryWrapper<HosCategoryEntity>()
        );

        return new PageUtils(page);
    }

}